import os
import subprocess


def compile_CPP_TestingCodes(filename : str) -> str:
    exe_filename = f'{filename}.exe'
    subprocess.call(f'g++ {filename} -I ../Enigma -I./ -o {exe_filename}'.split())

    return exe_filename


def removeCompiledExeFile(exe_filename : str):
    os.remove(exe_filename)